import org.antlr.runtime.ANTLRInputStream;
import org.antlr.runtime.CommonTokenStream;
import group2.grammars.*;

public class Testdpos {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception
	{
		 System.out.println("Please enter a statement to validate: \n");
			ANTLRInputStream input = new ANTLRInputStream(System.in);
			dp2Lexer lexer = new dp2Lexer(input);
			
	        CommonTokenStream tokens = new CommonTokenStream(lexer);
	        dp2Parser parser = new dp2Parser(tokens);
	        parser.prog();
	}

}
